package com.project.xsf.mapper;

import com.project.xsf.entity.MDesignProcedure;
import com.project.xsf.entity.MDesignProcedureModule;

import java.util.List;

public interface MDesignProcedureMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MDesignProcedure record);

    int insertSelective(MDesignProcedure record);

    MDesignProcedure selectByPrimaryKey(Integer id);

    MDesignProcedure queryByProductId(String productId);

    int updateByPrimaryKeySelective(MDesignProcedure record);

    int updateByPrimaryKey(MDesignProcedure record);

    //查询显示的信息为所有已登记待审核的工序组成设计单
    List<MDesignProcedure> queryMDesignProcedure();

    List<MDesignProcedure> queryAllMDesignProcedure();
    //产品定义人员变更:查询已审核通过的工序组成设计单信息
    List<MDesignProcedure> queryGreenMDesignProcedure();

    //查询未制定工序物料设计或工序物料设计审核未通过的产品工序设计单
    List<MDesignProcedure> queryMDesignProcedureModule();

    //查询的信息范围为所有尚未通过审核或变更后的工序物料设计单
    List<MDesignProcedure> queryMDesignProcedureModuleNoCheck();

    //查询的信息范围为所有已登记的工序物料设计单
    List<MDesignProcedure> queryMDesignProcedureHasDesign();



}